home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 76 / MF_UK_76_1.iso / Education Feature / MicroWorlds 2.03 Try Me / MicroWorlds 2.03 Try Me.rsrc / TEXT_139_clickon.txt < prev    next >
Encoding:
Text File  |  1998-05-08  |  589 b   |  18 lines

  1. clickon
  2.  
  3. Simulates a mouse click on the current turtle, turning it on if it was off. This command will have an effect if the turtle is programmed to react to a mouse click. If used in a button's dialog box, it will change the current turtle. See clickoff.
  4.  
  5. Type an instruction in the turtle's dialog box. Then type in the Command Center:
  6.  
  7. clickon
  8.  
  9. Type the following instruction in a button's dialog box:
  10.  
  11. t2, clickon
  12.  
  13. Hatch the t2 turtle. Then type in the Command Center:
  14.  
  15. t1, fd 45
  16.  
  17. Click the button with the clickon instruction for t2. Running fd 45 in the Command Center now moves t2.
  18.